< previous page page_158 next page >

Page 158
templates to your project by selecting the appropriate type when you add a new form; you can then customize it to suit your needs. The available templates include the following:
About Dialog. Used to provide the user with information about your program.
Log In Dialog. Allows the user to enter a user ID and password.
Options Dialog. Creates a dialog box similar to Property Pages or the Options dialog box of Visual Basic.
Tip Dialog. Can provide a Tip of the Day function for your program.
You can add these forms based on these dialog box templates to your program by choosing Project, Add Form, or by clicking the Add Form button. You then see the Add Form dialog box shown in Figure 7.11. You can choose the desired dialog box from the templates available and then customize it to suit your needs.
0158-01.jpg
Figure 7.11
Several custom dialog boxes are available as form templates.
From Here . . .
In this chapter, you learned how dialog boxes can be used to help the user select files, printers, and fonts in your programs. You also learned how the message box and input box are used to inform the user and to get decisions or single pieces of information. You even saw how to design your own dialog boxes when the built-in ones are insufficient for the task. To learn more about using some of the concepts presented here, take a look at the following chapters:
To learn more about desigining the forms you use in your applications, see Chapter 3, "Visual Basic Building Blocks."
For an introduction to writing the code that enables your forms to react to your users' actions, see Chapter 5, "Responding to the User with Event Procedures."
For a more complete discussion of writing Visual Basic code, see Chapter 9, "Visual Basic Programming Fundamentals."

 
< previous page page_158 next page >